function photoview(){
    return this;
}
var controlFns = {
    index : function(args){
        var aid;
        if(args.indexOf('_') > -1){
            aid = args.substring(0,args.indexOf('_'));
        }else{
            aid = args;
        }
        this.photolist(aid);
    },
    photolist : function(aid){

        //var aid = this.readData('aid',this.req.__get, 0)||'';

        var php = {
            'imglist' : 'store::/news/tu?id='+aid
        };
        var mSelf = this;
        this.setSDefault(php);
        this.bridgeMuch(php);
        this.listenOver(function(data){

            data.condition = this.req.__get;

            data.groupPg = {};
            //data.photoItems = [
            //    {
            //        src: 'https://farm2.staticflickr.com/1043/5186867718_06b2e9e551_b.jpg',
            //        w: 964,
            //        h: 1024,
            //        title: '<p>image1sdf测试</p><p>ima</p><p>价格测试</p><p>安替</p><p>斯蒂芬李健康</p>',
            //        size:'964x1024'
            //    },
            //    {
            //        src: 'https://farm7.staticflickr.com/6175/6176698785_7dee72237e_b.jpg',
            //        w: 1024,
            //        h: 683,
            //        title: '<p>ima</p><p>价格测试</p><p>安替</p>',
            //        size:'1024x683'
            //    }
            //];

            data._CSSLinks = ['h5/css/photoview'];
            data._JSLinks  = ['h5/min/photoview'];
            data.pageTitle = 'photoview';
            mSelf.render('photoview/photoview.html', data);
        });
    },

    items_apis: function(params){
        var php = {
            'itemlist' : 'store::/news/tu'

        };
        this.ajaxTo(php[params]);
    }
};
exports.__create = controller.__create(photoview , controlFns);
